﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PersonalCenter.aspx.cs" Inherits="PersonalCenter" Title="个人中心" %>

<asp:Content ID="Content2" ContentPlaceHolderID="main" Runat="Server">
    <link href="css/personalcenter.css" rel="stylesheet" type="text/css" />
    <link href="css/uploadify.css" rel="stylesheet" type="text/css" />

    <script src="/flashchart/swfobject.js" type="text/javascript"></script>
    <script src="js/Chenxin/form/Chenxin.UI.UploadHeadPicForm.js" type="text/javascript"></script>
    <script src="js/JQuery/jquery.uploadify.v2.1.0.min.js" type="text/javascript"></script>
    <script src="js/PersonalCenter.js" type="text/javascript"></script>
    <script type="text/javascript">
		//允许上传的图片类型
		var extensions = 'jpg,jpeg,gif,png';
		//保存缩略图的地址.
		var saveUrl = '../service/UploadHeadPic.ashx';
		//保存摄象头白摄图片的地址.
		var cameraPostUrl = '../service/UploadHeadPic.ashx';
		//头像编辑器flash的地址.
		var editorFlaPath = '../images/AvatarEditor.swf';

		function useCamera()
		{
			var content = '<embed height="464" width="514" ';
			content +='flashvars="type=camera';
			content +='&postUrl='+cameraPostUrl+'?op=camera';
			content += '&saveUrl='+saveUrl+'?op=camera" ';
			content +='pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" ';
			content +='allowscriptaccess="always" quality="high" ';
			content +='src="'+editorFlaPath+'"/>';
			document.getElementById('avatar_editor').innerHTML = content;
		}
		function buildAvatarEditor(pic_id,pic_path,post_type)
		{
			var content = '<embed height="464" width="514"'; 
			content+='flashvars="type='+post_type;
			content+='&photoUrl='+pic_path;
			content+='&photoId='+pic_id;
			content+='&postUrl='+cameraPostUrl+'?op=save_avata';
			content+='&saveUrl='+saveUrl+'?op=save_avata"';
			content+=' pluginspage="http://www.macromedia.com/go/getflashplayer"';
			content+=' type="application/x-shockwave-flash"';
			content+=' allowscriptaccess="always" quality="high" src="'+editorFlaPath+'"/>';
			document.getElementById('avatar_editor').innerHTML = content;
		}
		/**
		* 提供给FLASH的接口 ： 没有摄像头时的回调方法
		*/
		function noCamera(){
		    alert("俺没有camare ：）");
		}
					
		/**
		* 提供给FLASH的接口：编辑头像保存成功后的回调方法
		*/
		function avatarSaved(){
		    alert('保存成功！');
		    $('#uploadheadpic').jqmHide();
		    window.location.reload();
		}
			
		/**
		* 提供给FLASH的接口：编辑头像保存失败的回调方法, msg 是失败信息，可以不返回给用户, 仅作调试使用.
		*/
		function avatarError(msg){
            //alert(msg);
			alert("上传失败了呀，哈哈");
		}

    </script>
<div class="sidebar2"></div>
<div class="listpahlinks">
    <span>
        <a href="#">系统首页</a>
    </span>
    <span> > </span>
    <span><a href="#">个人中心</a></span>
</div>
<div class="search_table_title">
    <span class="tablfbg fl"></span>
    <span class="tablmbg fl">
        <h2>个人信息</h2>
    </span>
    <span class="tablrbg fr"></span>
</div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabInfo" align="center">
        <tr style="height:50px;">
            <th>用户姓名：</th>
            <td>
                <asp:Literal ID="Lit_UserName" runat="server"></asp:Literal>
            </td>
            <th>用户工号：</th>
            <td>
                <asp:Literal ID="Lit_UserCode" runat="server"></asp:Literal>
            </td>
            <td rowspan="2" style="width:120px; text-align:center;">
                <%-- %> <img src="images/pic_img.gif" />--%>
                <asp:Literal ID="Lit_HeadPic" runat="server"></asp:Literal>
            </td>
        </tr>
        <tr style="height:50px;">
            <%--<th>公司：</th>
            <td>
                <asp:Literal ID="Lit_Company" runat="server"></asp:Literal>
            </td>--%>
            <th>部门：</th>
            <td>
                <asp:Literal ID="Lit_Depart" runat="server"></asp:Literal>
            </td>
            <th>职务：</th>
            <td>
                <asp:Literal ID="Lit_Position" runat="server"></asp:Literal>
            </td>
        </tr>
        <%--<tr>
            <th>职级：</th>
            <td>
                <asp:Literal ID="Lit_EmployeeLevel" runat="server"></asp:Literal>
            </td>
        </tr>    
        <tr>
            <th>证件号：</th>
            <td>
                <asp:Literal ID="Lit_IDNo" runat="server"></asp:Literal>
            </td>
            <th>学历：</th>
            <td>
                <asp:Literal ID="Lit_Education" runat="server"></asp:Literal>
            </td>
        </tr>       
        <tr>
            <th>手机：</th>
            <td>
            </td>
            <th>办公电话：</th>
            <td>
                <asp:Literal ID="Lit_OfficeTel" runat="server"></asp:Literal>
            </td>
            <td style="text-align:center;">
            </td>
        </tr>     --%> 
        <tr style="height:50px;">
            <th>登录次数：</th>
            <td>
                <asp:Literal ID="Lit_LoginCount" runat="server"></asp:Literal>
                                        </td>
            <th>上次登录时间：</th>
            <td>
                <asp:Literal ID="Lit_LastLoginTime" runat="server"></asp:Literal>
                                        </td>
            <td style="text-align:center;">
                <div><span><a id="upheadpic" href="javascript:void(0);" title="编辑头像">编辑头像</a></span></div><br />
                <asp:Literal ID="Lit_Mobile" runat="server"></asp:Literal>
            </td>
        </tr>
        <%--<tr>
            <th>地址：</th>
            <td colspan="3">
                <asp:Literal ID="Lit_Address" runat="server"></asp:Literal>
            </td>
        </tr>--%>
    </table>
<div style="text-align:center; margin-top:30px;">
    
    
    <div style="height:60px; width:85%;  margin:20px auto; line-height:80px;">
   
        <asp:HyperLink title="房源中心"  class="part2_i1" id="houseLink" runat="server">房源中心</asp:HyperLink>
      <!--  <a href="HouseMgr.aspx" title="房源中心" class="part2_i1" id="houseLink">房源中心</a> -->
        <a href="CustomerMgr.aspx" title="客户中心" class="part2_i4">客户中心</a>
        <a href="UserMgr.aspx" title="人事中心" class="part2_i2">人事中心</a>
        <a href="http://www3.cityrehouse.com.cn:8082/page/Contract_ApplyInfo/ContractQuickSearch.aspx" title="交易中心" class="part2_i3">交易中心</a>
        <a href="#" title="结算中心" class="part2_i5">结算中心</a>
        <a id="btn_startwork" title="上班" class="part2_i6">上班</a>
        <a id="btn_endwork" title="下班" class="part2_i7">下班</a>
    </div>
 </div>
<%--<div class="search_table_title">
    <span class="tablfbg fl"></span>
    <span class="tablmbg fl">
        <h2>个人考勤</h2>
    </span>
    <span class="tablrbg fr"></span>&nbsp;&nbsp;
</div>
<div style="height:100px; line-height:100px; margin-bottom:10px; text-align:center;">
   <input id="btn_startwork" type="button" class="wkBtn" onmouseover="this.style.backgroundPosition='left -35px'" onmouseout="this.style.backgroundPosition='left top'" value="上班" title="下班"/>
   <input id="btn_endwork" type="button" class="wkBtn" onmouseover="this.style.backgroundPosition='left -35px'" onmouseout="this.style.backgroundPosition='left top'" value="下班" title="下班"/>
</div>--%>



<div class="search_table_title">
    <span class="tablfbg fl"></span>
    <span class="tablmbg fl">
        <h2>当日工作报告</h2>
    </span>
    <span class="tablrbg fr"></span>
</div>
<div id="current_workreport">
    <asp:Literal ID="Lit_CurrentDateReport" runat="server"></asp:Literal>

</div>
<div style="margin-bottom:30px;"><span style="float:right;"><a href="WorkReport/WorkReportSearch.aspx" title="更多...">更多...</a></span></div>


<div class="search_table_title">
    <span class="tablfbg fl"></span>
    <span class="tablmbg fl">
        <h2>营业活动</h2>
    </span>
    <span class="tablrbg fr"></span>
</div>
<div style=" padding-top:10px; text-align:center; width:600px; margin:auto;">    
        <div id="my_chart">
        </div>
</div>

<div class="search_table_title">
    <span class="tablfbg fl"></span>
    <span class="tablmbg fl">
        <h2>业务提醒</h2>
    </span>
    <span class="tablrbg fr"></span>
</div>
<div></div>
<div id="publishinfo" class="publishinfo">
    <asp:Literal ID="Lit_PublishInfo" runat="server"></asp:Literal>
    <div class="clear"></div>
</div>
<div id="uploadheadpicWin"></div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="foot" Runat="Server">
</asp:Content>

